home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Games / NeXTmille / Source / SafetyView.h < prev    next >
Text File  |  1991-01-11  |  1KB  |  41 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. #import "CardView.h"
  5.  
  6.  
  7. // All of the safety cards are a subclass of this view.
  8. //    This class is intended to be a form of a base class for those
  9. //    subclasses.
  10. // This class implements a method that allows the rotated flag
  11. //    to be manipulated.  It also performes the drawing for the safety card.
  12.  
  13.     
  14. @interface SafetyView:CardView
  15. {
  16.                                                 // This is the bitmap used for the coup fouree
  17.                                                 //    bottom face.  Its is assigned in a
  18.                                                 //    subclass.
  19.     CardImage    *rotatedBottomFaceBitmap;
  20.                                                 // This flag is used to determine if the rotated
  21.                                                 //    bottom face bitmap should be displayed.
  22.     BOOL        rotatedFlag;
  23. }
  24.  
  25.  
  26.                                                 // The +new method simply initializes
  27.                                                 //    a instance variable.
  28. + new;
  29.                                                 // Only safety cards are allowed to be
  30.                                                 //    rotated.  This occurs when the safety is
  31.                                                 //    a coup fouree. 
  32.                                                 // This method will also manipulate the frame
  33.                                                 //    of the card so that the view is rotated.
  34.                                                  
  35. - setRotatedFlag:( BOOL )flag;
  36.  
  37. - drawSelf:( const NXRect * )rects :( int )rectCount;
  38.  
  39.  
  40. @end
  41.